package com.yusheng.tr.common.core.entity.multi;


import com.alibaba.fastjson2.annotation.JSONField;
import com.baomidou.mybatisplus.annotation.*;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.v3.oas.annotations.media.Schema;
import jakarta.validation.constraints.NotEmpty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.util.Date;

/**
 * <p>
 * 结算单管理表
 * </p>
 *
 * @author author
 * @since 2023-10-07
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("stmt_mng")
@Schema(title = "StmtMng对象", description="结算单管理表")
public class StmtMngEntity implements Serializable {

    private static final long serialVersionUID = 1L;


    @TableId(value = "id", type = IdType.ASSIGN_UUID)
    @Schema(name = "主键")
    private String id;

    @NotEmpty(message = "订单编号不能为空")
    @Schema(name = "订单编号")
    private String orderNum;

    @NotEmpty(message = "报表类型主键不能为空")
    @Schema(name = "报表类型主键")
    private String reportTypeId;


//    @NotEmpty(message = "模型主键不能为空")
    @Schema(name = "模型主键")
    private String modelId;


    @NotEmpty(message = "结算单内容不能为空")
    @Schema(name = "结算单内容;[{},{}]")
    private String stmtContent;


    @TableField(value = "create_by", fill = FieldFill.INSERT)
    @Schema(name = "创建人")
    private String createBy;


    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JSONField(format="yyyy-MM-dd HH:mm:ss")
    @TableField(value = "create_time", fill = FieldFill.INSERT)
    @Schema(name = "创建时间")
    private Date createTime;


    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JSONField(format="yyyy-MM-dd HH:mm:ss")
    @TableField(value = "print_time", fill = FieldFill.INSERT)
    @Schema(name = "打印时间")
    private Date printTime;

    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JSONField(format="yyyy-MM-dd HH:mm:ss")
    @TableField(value = "upload_time", fill = FieldFill.INSERT)
    @Schema(name = "上传时间")
    private Date uploadTime;

    @Schema(name = "附件地址")
    private String annexAdd;

    @Schema(name = "状态;0未提交、1已提交、2已作废、3、驳回修改、4已删除")
    private Integer status;

    @Schema(name = "表单名称")
    private String stmtName;


}
